package com.xrs.xrseducation.student.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xrs.xrseducation.student.entity.Student;
import com.xrs.xrseducation.student.mapper.StudentMapper;
import com.xrs.xrseducation.student.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 学生表 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2020-09-18
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements IStudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public IPage queryStu(Page page, String did, String valu) {
        IPage iPage=null;
        if(null==did || "0".equals(did) && "".equals(valu) || null==valu ){
            iPage=studentMapper.selectPage(page,null);
        }else{ //按条件查询客户


        }
        return null;
    }

}
